package cn.tedu.blog.server.service.impl;

import cn.tedu.blog.server.mapper.CategoryMapper;
import cn.tedu.blog.server.pojo.vo.CategoryDetailVO;
import cn.tedu.blog.server.service.ICategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class CategoryServiceImpl implements ICategoryService {
    @Autowired
    CategoryMapper categoryMapper;
    public List<CategoryDetailVO> select() {
        log.debug("正在查询分类集合列表");
        List<CategoryDetailVO> list=   categoryMapper.select();
        log.debug("查询出来的list():{}",list.toString());
        return list;
    }
}
